From: Jasper St. Pierre Date: Thu, 14 Mar 2013 20:45:29 +0000 (-0400) Subject: background: Set the correct index on images X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4467 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c4470fd1e6ee9f329b05057004431c87f0a977e7;p=gnome-shell.git background: Set the correct index on images The pattern is underneath, so we need to add one. It turns out that ClutterGroup doesn't care about that, but we need to do this to remove deprecations in mutter. https://bugzilla.gnome.org/show_bug.cgi?id=695882 --- diff --git a/js/ui/background.js b/js/ui/background.js index 6d6089b5c..bb1b2f8d0 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -356,7 +356,10 @@ const Background = new Lang.Class({ let actor = new Meta.BackgroundActor(); actor.content = content; - this.actor.insert_child_at_index(actor, index); + + // The background pattern is the first actor in + // the group, and all images should be above that. + this.actor.insert_child_at_index(actor, index + 1); this._images[index] = actor; this._watchCacheFile(filename);